package com.zilu.digitaltwin.dto.geo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * @author :caijianbao
 * @date : 2023/1/10 19:48
 */
@Data
public class JobResidenceLayerDTO {

    /**
     * 工作地图层
     */
    @JsonProperty("workingLayer")
    private LayerDTO workingLayer;

    /**
     * 居住地图层
     */
    @JsonProperty("residenceLayer")
    private LayerDTO residenceLayer;


    public LayerDTO getWorkingLayer() {
        if (workingLayer == null) {
            workingLayer = new LayerDTO();
        }
        return workingLayer;
    }

    public LayerDTO getResidenceLayer() {
        if (residenceLayer == null) {
            residenceLayer = new LayerDTO();
        }
        return residenceLayer;
    }

}
